package com.foreknow.elmboot.service;

import com.foreknow.elmboot.po.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

public interface UserService {
    /**
     * 登录
     * @param userId
     * @param password
     * @return User对象
     * @throws Exception
     */
    public User getUserByIdByPass(String userId, String password) throws Exception;

    /**
     * 注册
     * @param userId
     * @param password
     * @param userName
     * @param userSex
     * @return
     * @throws Exception
     */
    public int saveUser(String userId,String password,String userName,String userSex)throws Exception;


}
